<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <input type="hidden" name="update_time" value="{$row.update_time|default=''}">
        <div class="operate-bar">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>
                {:lang('common.btn_save')}
            </button>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('contract.number')}</label>
            <div class="layui-input-inline">
                <input type="text" name="number" class="layui-input" lay-verify="required"
                       placeholder="{:lang('common.input')}{:lang('contract.number')}" value="{$row.number|default=''}">
            </div>
            <label class="layui-form-label">{:lang('contract.article')}</label>
            <div class="layui-input-inline">
                <input type="text" name="article" class="layui-input" lay-verify="required"
                       placeholder="{:lang('common.input')}{:lang('contract.article')}"
                       value="{$row.article|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('contract.custom_name')}</label>
            <div class="layui-input-block">
                <input type="text" name="custom_name" class="layui-input" lay-verify="required"
                       placeholder="{:lang('common.input')}{:lang('contract.custom_name')}"
                       value="{$row.custom_name|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('contract.start_date')}</label>
            <div class="layui-input-inline">
                <input type="text" name="start_date" class="layui-input cssDate" lay-verify="required"
                       placeholder="{:lang('common.choose')}{:lang('contract.start_date')}" onblur="checkDate(this)"
                       value="{$row.start_date|default=''}">
            </div>
            <label class="layui-form-label">{:lang('contract.end_date')}</label>
            <div class="layui-input-inline">
                <input type="text" name="end_date" class="layui-input cssDate" lay-verify="required"
                       placeholder="{:lang('common.choose')}{:lang('contract.end_date')}" onblur="checkDate(this)"
                       value="{$row.end_date|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">{:lang('contract.status')}</label>
            <div class="layui-input-inline">
                <select name="status" lay-verify="required" default-value="{$row.status|default=''}"
                        data-select-type="contract_status_list">
                </select>
            </div>
            <label class="layui-form-label">{:lang('contract.contract_money')}</label>
            <div class="layui-input-inline">
                <input type="text" name="contract_money" class="layui-input" lay-verify="required"
                       placeholder="{:lang('common.input')}{:lang('contract.contract_money')}"
                       value="{$row.contract_money|default=''}" onkeyup="javascript:onlyNumber(this)">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">{:lang('contract.invoice')}</label>
            <div class="layui-input-inline">
                <select name="invoice" lay-verify="required" default-value="{$row.invoice|default=''}"
                        data-select-type="invoice_status_list">
                </select>
            </div>
            <label class="layui-form-label">{:lang('contract.invoice_money')}</label>
            <div class="layui-input-inline">
                <input type="text" name="invoice_money" class="layui-input" lay-verify="required"
                       placeholder="{:lang('common.input')}{:lang('contract.invoice_money')}"
                       value="{$row.invoice_money|default=''}" onkeyup="javascript:onlyNumber(this)">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('contract.unit')}</label>
            <div class="layui-input-inline">
                <input type="text" name="unit" class="layui-input" value="{$row.unit|default=''}"
                       placeholder="{:lang('common.input')}{:lang('contract.unit')}">
            </div>
            <label class="layui-form-label">{:lang('contract.collect_money')}</label>
            <div class="layui-input-inline">
                <input type="text" name="collect_money" class="layui-input"
                       placeholder="{:lang('common.input')}{:lang('contract.collect_money')}"
                       value="{$row.collect_money|default=''}" onkeyup="javascript:onlyNumber(this)">
            </div>
        </div>

        <fieldset class="layui-elem-field">
            <legend>{:lang('contract.signer')}</legend>
            <div class="layui-form-item">
                <label class="layui-form-label">{:lang('contract.signer')}</label>
                <div class="layui-input-inline">
                    <input type="text" name="signer" class="layui-input" value="{$row.signer|default=''}"
                           placeholder="{:lang('common.input')}{:lang('contract.signer')}">
                </div>
                <label class="layui-form-label">{:lang('contract.sign_rate')}</label>
                <div class="layui-input-inline">
                    <input type="text" name="sign_rate" class="layui-input"
                           placeholder="{:lang('common.input')}{:lang('contract.sign_rate')}"
                           value="{$row.sign_rate|default=''}" onkeyup="javascript:onlyInteger(this)">
                </div>
                <div class="layui-form-mid layui-word-aux">%</div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">{:lang('contract.sign_money')}</label>
                <div class="layui-input-inline">
                    <input type="text" name="sign_money" class="layui-input"
                           placeholder="{:lang('common.input')}{:lang('contract.sign_money')}"
                           value="{$row.sign_money|default=''}" onkeyup="javascript:onlyNumber(this)">
                </div>
                <label class="layui-form-label">{:lang('contract.sign_status')}</label>
                <div class="layui-input-inline">
                    <select name="sign_status" lay-verify="required" default-value="{$row.sign_status|default=''}"
                            data-select-type="settle_status_list">
                    </select>
                </div>
            </div>
        </fieldset>

        <fieldset class="layui-elem-field">
            <legend>{:lang('contract.undertaker')}</legend>
            <div class="layui-form-item">
                <label class="layui-form-label">{:lang('contract.undertaker')}</label>
                <div class="layui-input-inline">
                    <input type="text" name="undertaker" class="layui-input" value="{$row.undertaker|default=''}"
                           placeholder="{:lang('common.input')}{:lang('contract.undertaker')}">
                </div>
                <label class="layui-form-label">{:lang('contract.undertake_rate')}</label>
                <div class="layui-input-inline">
                    <input type="text" name="undertake_rate" class="layui-input"
                           placeholder="{:lang('common.input')}{:lang('contract.undertake_rate')}"
                           value="{$row.undertake_rate|default=''}" onkeyup="javascript:onlyInteger(this)">
                </div>
                <div class="layui-form-mid layui-word-aux">%</div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">{:lang('contract.undertake_money')}</label>
                <div class="layui-input-inline">
                    <input type="text" name="undertake_money" class="layui-input"
                           placeholder="{:lang('common.input')}{:lang('contract.undertake_money')}"
                           value="{$row.undertake_money|default=''}" onkeyup="javascript:onlyNumber(this)">
                </div>
                <label class="layui-form-label">{:lang('contract.undertake_status')}</label>
                <div class="layui-input-inline">
                    <select name="undertake_status" lay-verify="required" default-value="{$row.undertake_status|default=''}"
                            data-select-type="settle_status_list">
                    </select>
                </div>
            </div>
        </fieldset>
    </form>
</div>
<script>
    layui.use(['myCommon'], function () {
        var myCommon = layui.myCommon;
        myCommon.listen();
    });
</script>
